package org.jackysoft.entity;

import java.util.Date;

import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import org.jackysoft.entity.AbstractEntity;
import org.jackysoft.entity.Department;
import org.jackysoft.util.UnitType;

@MappedSuperclass
public abstract class AbstractEquipment extends AbstractEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 9076728980976785186L;
	private String name;
	private String typicalness;
	private String manufacture;
	private Date   outDate;
	private String outNo;
	private double power;
	private String assetsNo;
	private String cardNo;
	private double price;
	private UnitType unit;
	private Department owner;
	private String fundsFrom;
	private Date outDepositoryDate;
	private Integer amount;
	private String imagePath;
	
	
	
	
	public AbstractEquipment(){
		
	}

	
	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getTypicalness() {
		return typicalness;
	}



	public void setTypicalness(String typicalness) {
		this.typicalness = typicalness;
	}



	public String getManufacture() {
		return manufacture;
	}



	public void setManufacture(String manufacture) {
		this.manufacture = manufacture;
	}



	public Date getOutDate() {
		return outDate;
	}



	public void setOutDate(Date outDate) {
		this.outDate = outDate;
	}



	public String getOutNo() {
		return outNo;
	}



	public void setOutNo(String outNo) {
		this.outNo = outNo;
	}



	public double getPower() {
		return power;
	}



	public void setPower(double power) {
		this.power = power;
	}



	public String getAssetsNo() {
		return assetsNo;
	}



	public void setAssetsNo(String assetsNo) {
		this.assetsNo = assetsNo;
	}



	public String getCardNo() {
		return cardNo;
	}



	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}



	public double getPrice() {
		return price;
	}



	public void setPrice(double price) {
		this.price = price;
	}



	@ManyToOne
	public Department getOwner() {
		return owner;
	}



	public void setOwner(Department owner) {
		this.owner = owner;
	}



	public String getFundsFrom() {
		return fundsFrom;
	}



	public void setFundsFrom(String fundsFrom) {
		this.fundsFrom = fundsFrom;
	}



	public Date getOutDepositoryDate() {
		return outDepositoryDate;
	}



	public void setOutDepositoryDate(Date outDepositoryDate) {
		this.outDepositoryDate = outDepositoryDate;
	}



	public UnitType getUnit() {
		return unit;
	}


	public void setUnit(UnitType unit) {
		this.unit = unit;
	}



	


	public String getImagePath() {
		return imagePath;
	}



	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}


	public Integer getAmount() {
		return amount;
	}


	public void setAmount(Integer amount) {
		this.amount = amount;
	}  
}
